public class 和 {
    private int a, b;
    private double c, d;
    private String str1, str2;

    public void SumUtils(int a, int b) {
        this.a = a;
        this.b = b;
        System.out.println("两个整数相加：" + (a + b));
    }

    public void SumUtils(double c, double d) {
        this.c = c;
        this.d = d;
        System.out.println("两个小数相加：" + (c + d));
    }

    public void SumUtils(String str1, String str2) {
        this.str1 = str1;
        this.str2 = str2;
        System.out.println("两个字符串相加：" + (str1 + str2));
    }

    public void SumUtils(int a) {
        int sum = 0;
        for (int i = 1; i < a + 1; i++) {
            sum += i;
        }
        System.out.println("1到指定整数的和：" + sum);
    }
}

class TestSumUtils {
    public static void main(String[] args) {
        和 sumUtils = new 和();
        sumUtils.SumUtils(1, 2);
        sumUtils.SumUtils(1.5, 1.4);
        sumUtils.SumUtils("惠", "科");
        sumUtils.SumUtils(2);
    }
}